<?php
if (!defined('BASEPATH'))
	exit ('No direct script access allowed');

class Home extends CI_Controller {
	var $data;
	function __construct() {
		parent :: __construct();
		if ($this->session->userdata('userid') == FALSE) {
			Header("Location:" . site_url('welcome'));
			exit ();
		}
		$this->data['user_name'] = $this->session->userdata('username');
	}
	function index() {

		$this->load->view('admin/home', $this->data);
	}
}